﻿using Minotaur.App.Core;
using Minotaur.App.Modules.OrganizationSet.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace Minotaur.App.Modules.OrganizationSet
{
    public class OrganizationSetModule : IModule
    {
        private readonly IRegionManager _regionManager;

        public OrganizationSetModule(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }
        public void OnInitialized(IContainerProvider containerProvider)
        {
            _regionManager.RequestNavigate(RegionNames.ContentRegion, "404");
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<ViewA>("company");
        }
    }
}